Skip to content

feat(canvas): resize the Pages and Layers split - #516

Merged
kgoedecke merged 5 commits into
doop-design:mainfrom
baekjosh:feat/resizable-pages-layers
Nov 18, 2026
Merged

kgoedecke merged 5 commits into
doop-design:mainfrom
baekjosh:feat/resizable-pages-layers

Conversation

@baekjosh

@baekjosh baekjosh commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Drag the divider between Pages and Layers to give either list more room. Pages can extend beyond the last page row; at the bottom limit, Layers still has room for its heading, search, and a row.
  • Pages starts compact until resized. Doop remembers the split per canvas across reloads.
  • Arrow keys move the divider 10 px at a time; Home and End move it to its limits. The minimum Pages height keeps a page row and the move picker visible when a frame is selected.

Verification

  • Confirmed the wider drag range in the local macOS app.
  • Chromium regression covers dragging past the last page row, keeping a Layers row visible, and restoring the split on reload. Tests also cover keyboard bounds, the move picker, and keeping a different canvas compact.
  • Typecheck and 28 focused tests passed. Full suite left to CI.

- Drag the edge between the Pages list and the Layers tree, or focus it and
  use the arrow keys (10px a press); Home and End take it to its limits.
- Store the split per browser as a percentage of the rail height. CSS and JS
  both clamp it, so Pages keeps its heading and one row and Layers keeps room
  for a few rows at any window height.
- Until the split is dragged, the Pages list keeps its 30vh cap.
- Replace PagesPanel's unused fill prop with the split props.
- Tests: clamp, key and storage rules as unit tests; headless Chromium drives a
  real mouse drag, keyboard steps and a reload.
@github-actions

github-actions Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@greptile-apps

greptile-apps Bot commented Nov 15, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 4/5

[Low impact] The change is limited to the canvas rail’s Pages and Layers layout.

The PR appears safe to merge, with follow-up fixes needed for small sizes and screen-reader feedback.

Findings

  1. P2 Page rows disappear when selected ▶
  2. P2 Screen readers miss split value ▶

Summary

Adds a saved, draggable split between Pages and Layers, with keyboard controls and size limits.

  • The Pages and Layers sections can be resized and remembered.

Reviews (1) · Last reviewed commit: "feat(canvas): resize the Pages and Layer..." · Reviewed by Greptile

Comment thread src/lib/pagesSplit.ts Resolved
Comment thread src/components/PagesPanel.tsx Resolved
- At 54px, a selected frame's move picker (40px) left the Pages list no room
  for its 27px row, so the first row was clipped.
- The minimum is now 101px: heading 30 + row 27 + list padding 4 + picker 40.
- The browser test selects a frame, presses Home, and checks that the first
  row and the picker sit inside their Pages section.
- The unit test is renamed to name the minimum, not one row.
kgoedecke added a commit that referenced this pull request Nov 16, 2026
After a submit the composer flies to the first new frame. A component
made from markup lands its main on the Components page, so the person
was pulled off their page onto it. Pass over component mains and wait
for the deliverable.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit cc1d916e867f322022e56694a9b249b4deb3e186)
@kgoedecke

Copy link
Copy Markdown
Collaborator
image

There seems to be a lot of space between them now, can you remove that. Also I think we should add a line similar to outline of the panel (same color).

Also can you resolve merge conflicts, as well as resolve Greptile comments.

- Merge current upstream and preserve the richer canvas fixture contract.
- Keep sparse page lists compact and draw a full-width panel-color divider.
- Account for the move picker in the minimum and report live separator values.
- Cover sparse lists, dragging, keyboard limits, persistence, and selection changes.
@baekjosh

Copy link
Copy Markdown
Contributor Author

Updated against current main and addressed the review feedback. Sparse page lists stay compact, the divider uses the panel outline color, and the resize limits account for the move picker. The separator also reports live current/min/max values. Verified the one-page empty-canvas case and selected-frame minimum in Chromium; all 130 affected tests, typecheck, lint, and changed-file formatting passed.

@kgoedecke
kgoedecke merged commit c37705d into doop-design:main Nov 18, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants